<template>
  <span>
    {{ isEmpty(row[col.prop]) ? '--' : row[col.prop] }}
  </span>
</template>

<script>
export default {
  name: 'TdText',
  components: {},
  props: {
    col: {
      type: Object,
      default: () => {}
    },
    row: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {

    }
  },
  methods: {
    isEmpty(text) {
      if (text === undefined || text === null || text === '') {
        return true
      }
      return false
    }
  }
}
</script>

<style lang='scss' scoped>

</style>
